<template>
  <div class="error-page">
    <div class="error-content">
      <div class="error-icon">404</div>
      <h1 class="error-title">页面不存在</h1>
      <p class="error-desc">抱歉，您访问的页面不存在或已被删除</p>
      <el-button type="primary" @click="goHome">返回首页</el-button>
    </div>
  </div>
</template>

<script setup lang="ts">
import { useRouter } from 'vue-router'

const router = useRouter()

const goHome = () => {
  router.push('/dashboard')
}
</script>

<style scoped lang="scss">
.error-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: #f5f7fa;
}

.error-content {
  text-align: center;

  .error-icon {
    font-size: 120px;
    font-weight: bold;
    color: #409eff;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .error-title {
    font-size: 32px;
    color: #303133;
    margin: 0 0 10px 0;
  }

  .error-desc {
    font-size: 14px;
    color: #909399;
    margin: 0 0 30px 0;
  }
}
</style>
